<?php

namespace app\api\validate;

class Workstation  extends \think\Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'name' => 'require',
        'contact' => 'require',
        'tel' => 'require',
        'province_id' => 'require',
        'city_id' => 'require',
        'area_id' => 'require',
        'address'=>'require',
        'image'=>'require',
        'lng'=>'require',
        'lat'=>'require'
    ];
    /**
     * 字段描述
     */
    protected $field = [
        'name'=>'店名',
        'contact'=>'联系人',
        'tel'=>'电话',
        'province_id'=>'省',
        'city_id'=>'市',
        'area_id'=>'区',
        'address'=>'详细地址',
        'image'=>'店招照片',
        'lng'=>'经纬度',
        'lat'=>'经纬度',
    ];
}